package com.springdi.service;

import java.util.*;

public class AccountServiceImppl2 implements IAccountService{
    /**
     * set注入的方式
     */
    private  String username;
    private Date birthday;
    private Integer age;

    //集合的注入
    private String[] mystrs;
    private List<String> mylist;
    private Set<String> myset;
    private Map<String,String> mymap;
    private Properties myproper;

    public void setMystrs(String[] mystrs) {
        this.mystrs = mystrs;
    }

    public void setMylist(List<String> mylist) {
        this.mylist = mylist;
    }

    public void setMyset(Set<String> myset) {
        this.myset = myset;
    }

    public void setMymap(Map<String, String> mymap) {
        this.mymap = mymap;
    }

    public void setMyproper(Properties myproper) {
        this.myproper = myproper;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void saveAccount() {
        //System.out.println("service访问被调用：："+username+age+birthday+"---");
        System.out.println(Arrays.toString(mystrs));
        System.out.println(mylist);
        System.out.println(mymap);
        System.out.println(myset);
        System.out.println(myproper);
    }
}
